<template>
    <div>
      <el-card class="box-card">
          <template #header>
              <div class="cart-header">
                  <span>{{title}}</span>
              </div>
          </template>
          <div class="item">
              <slot></slot>
          </div>
      </el-card>
    </div>
</template>

<script>
export default {
      props:{
            title:{
                type:String
              
            }
        },
    setup () {
      

        return {}
    }
}
</script>

<style lang="less" scoped>
.box-card{
    &:deep(.el-card__header){
        padding: 10px 20px !important;
    }
}
.cart-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 30px;
}
.item{
    margin-bottom: 10px;
}
</style>